package com.gxa.zhonglong.exception;


import com.gxa.zhonglong.common.ExceptionCode;

/**
 * @author NITRO
 */
public class BusinessException extends Exception {

	private ExceptionCode exceptionCode;
	public String getCode(){
		return exceptionCode.getCode();
	}
	public BusinessException(ExceptionCode exceptionCode){
		super(exceptionCode.getMessage());
		this.exceptionCode=exceptionCode;
	}

}
